﻿namespace Murry.DataStore
{
    /// <summary>
    /// Interface for a DataStore.
    /// </summary>
    public interface IDataStore : IReadOnlyDataStore
    {
        /// <summary>
        /// Create a new object that implements the given interface.
        /// </summary>
        /// <typeparam name="TInterface">Interface type</typeparam>
        /// <returns>New entity.</returns>
        TInterface Create<TInterface>() where TInterface : IPersist;
     }
}
